package com.laxcen.smoke.service;

import com.github.pagehelper.PageInfo;
import com.laxcen.smoke.entity.AbNormalRecord;
import com.laxcen.smoke.util.Response;

import java.text.ParseException;
import java.util.List;

public interface AbNormalService {

    Response insert(String smartno, String sboxno, Integer abnormaltype);

    Response update(String id, String username, int status, String content);

    Response<PageInfo<AbNormalRecord>> getList(String smartno, String starttime, String endtime, int roleflag, String province, String city, String area, int pageNo, int pageSize, int state) throws ParseException;

    Response<PageInfo<AbNormalRecord>> getAllList(int pageNo, int pageSize, int roleflag, String province, String city, String area);

    Response<List<AbNormalRecord>> getOne(String smartno);

}
